From 07c8ffcc75bcb080fb3c87d1a65831eab6a27a1d Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 31 Oct 2006 18:10:54 +0000 Subject: [PATCH] In KML/Realtime mode, pull track out of folder and up one level as we know we'll have only one track. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2455 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/kml.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gpsbabel/kml.c b/gpsbabel/kml.c index a3851342c..5b8099337 100644 --- a/gpsbabel/kml.c +++ b/gpsbabel/kml.c @@ -484,7 +484,9 @@ void kml_output_trkdescription(const route_head *header, computed_trkdata *td) static void kml_output_header(const route_head *header, computed_trkdata*td) { - kml_write_xml(1, "\n"); + if (!realtime_positioning) { + kml_write_xml(1, "\n"); + } kml_write_xmle("name", header->rte_name); kml_output_trkdescription(header, td); @@ -618,7 +620,9 @@ static void kml_output_tailer(const route_head *header) xfree(point3d_list); point3d_list = NULL; - kml_write_xml(-1, "\n"); + if (!realtime_positioning) { + kml_write_xml(-1, "\n"); + } } static -- 2.30.2